
export interface IDistrictItem {
    children: any
    id: number
    createTime: string
    updateTime: string
    name: string
    value: string
    hasChildren: boolean
}
// 定义获取到的地区数据类型 （省市区）
export type IDistrictList = IDistrictItem[]

// 医院列表数据类型
export interface IFormFields{
    hosname?: string
    hoscode?: string
    hostype?: string
    provinceCode?: string
    cityCode? : string
    districtCode?: string
    status?: number
}

export interface IHospitalListParams extends IFormFields {
    page: number
    limit: number
    
}

export interface IBookingRule {
    cycle: number // 预约周期
    releaseTime: string // 放号时间
    stopTime: string // 停止挂号时间
    quitDay: number // 就诊结束日期
    quitTime: string // 结束时间
    rule: string[] // 取号规则
}
export interface IHospitalItem {
    id: string
    createTime: string // 创建时间
    param: {
        hostypeString:string // 医院等级
        fullAddress: string // 医院地址
    }
    hoscode: string
    hosname: string
    hostype: string // 医院类型
    provinceCode: string
    cityCode:string
    districtCode: string
    address: string // 地址
    logoData: string // 医院logo base64Url
    route: string // 乘车路线
    status: number // 医院状态
    intro: string | null
    bookingRules: IBookingRule | null
    
}

// 医院列表数据类型
export type IHospitalList = IHospitalItem[]

// 医院列表接口响应结果数据数据类性
export interface IHospitalListResponse {
    content: IHospitalList
    totalElements: number
}


// 医院详情数据类型
export interface IHospitalDetail {
    bookingRule: IBookingRule
    hospital: IHospitalItem
}

// 科室列表详情数据
// 设置科室一级详情列表
export interface IFirDepartmentData {
    children: ISecDepartmentList | null
    depcode: string
    depname: string
    disabled?: boolean
}
export type IDepList = IFirDepartmentData[]
// 科室二级详情列表
export interface ISecDepartmentData {
    children: string | null
    depcode: string
    depname: string
}
export type ISecDepartmentList = ISecDepartmentData[]

// 排版日期每一项的类型
export interface IBookingScheduleItem {
    workDate: string
    dayOfweek: string
    doCount: number
    reservedNumber: number
    availableNumber: number
}
export type IBookingScheduleList = IBookingScheduleItem[]

// 请求排班日期分页数据的响应结果数据类型
export interface IScheduleResponse {
    total: number
    bookingScheduleList: IBookingScheduleList
    baseMap: {
        hosname: string
    }
}

// 排版表格数据类型
export interface IDocterItem {
    id: string
    createTime: string
    param: {
        dayOfWeek: string
        depname: string
        hosname: string
    }
    hoscode: string
    depcode: string
    title: string
    skill: string
    workDate: string
    reservedNumber: number
    availableNumber: number
    amount: number
    status: number
}
// 排版医生列表类型
export type IDocterList = IDocterItem[]




